import axios from 'axios'
var instance = axios.create({
  headers: {
    'Content-Type': 'application/json'
  },
  baseURL: 'http://stuq.ceshiren.com:8089/'
})

// login时保存token，此处用于获取token
// instance.interceptors.request.use(config=>{
//   if(localStorage.getItem('token')){
//     config.headers.common['token'] = localStorage.getItem('token')
//   }
//   return config
// })

export default instance
